<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>访问统计列表</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> <a _href="welcome.html" class="fun-toindex" href="javascript:;">首页</a> 
	<span class="c-gray en">&gt;</span> 访问统计管理 <span class="c-gray en">&gt;</span> 访问统计列表 
	<a class="btn btn-success radius r mr-20 reload" style="line-height:1.6em;margin-top:3px" href="javascript:;" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
	<span class="r" style="margin-top: -2px; box-sizing: border-box;">
		<span style="position:relative">
			<input type="text" name="k"  placeholder="页面名称/网址" style="width:300px" class="input-text">
			<i class="Hui-iconfont i-close" id="inputclear">&#xe706;</i>
		</span>
		<button name="" id="search" class="btn btn-success"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
	</span>
</nav>
<div class="pd-20">
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="9">访问统计列表</th>
			</tr>
			<tr class="text-c sort0">
				<th width="25" class="valueid"><input type="checkbox" name="" value=""></th>
				<th width="40" class="fun-sort2" data-name="id" data-flag="0">ID</th>
				<th width="200">页面名称</th>
				<th>URL</th>

				<th width="100">是否已开启</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody id="content_sp">

		</tbody>
	</table>

	<div class="cl pd-5 bg-1 bk-gray mt-20" id="pagelist">
		<a href="javascript:;" class="btn btn-warning l mr-10 mt-5 radius fun-all" data-type="stop"><i class="Hui-iconfont">&#xe6de;</i> 批量关闭</a> 
		<a href="javascript:;" class="btn btn-success l mr-10 mt-5 radius fun-all" data-type="start"><i class="Hui-iconfont">&#xe603;</i> 批量开启</a> 
		<a href="javascript:;" class="btn btn-danger l mr-10 mt-5 radius fun-all" data-type="del"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>  
		<a href="javascript:;" onclick="_open('添加访问统计','count-add.html','40%','50%',false)" class="btn btn-primary radius l mt-5 mr-20"><i class="Hui-iconfont">&#xe600;</i> 添加访问统计</a> 
		<span class="r" style="line-height: 40px;" id="dataall"></span> 
		<span class="r" style="line-height: 40px;" id="page"></span> 
	</div>

</div>
<!-- 列表模版 -->
<script id="test" type="text/html">
<% for (x in list) { %>
	<tr class="text-c adminlist sort1">
		<td class="valueid"><input type="checkbox" value="<%=list[x].id%>" name=""></td>
		<td><%=list[x].id%></td>
		<td><%=list[x].title%></td>
		<td>/pages/<%=list[x].name%>/<%=list[x].name%></td>
		<td class="td-status">

			<input type="checkbox" class="switch fun-start-stop" <%if(list[x].status==1){ %>checked<% } %>/>
			
		</td>
		<td class="td-manage f-18">

				
				<a title="编辑" href="javascript:;" onclick="_open('访问统计编辑','count-add.html?editid=<%=list[x].id%>','60%','50%',false)" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> 
				<a style="text-decoration:none" class="ml-5 fun-del" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i>

		</td>
	</tr>
<% } %>
</script>	
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>  
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 
<script type="text/javascript" src="js/template-native.js"></script> 
<script type="text/javascript" src="lib/laypage/laypage.js"></script>
<script src="/Manage/js/lazyload.min.js"></script> 

<script type="text/javascript">
var API=API_COUNT_LIST;
var kk=API_COUNT_LIST;
var orderby='';
var search='';
var keyword=getUrlParam('keyword');
if(keyword!=null && keyword!==''){
	$('input[name=k]').val(keyword);
	$('#name').text(keyword)
	loaddata(API+'?k='+keyword,1);
}else{
	loaddata(API,1);
}


$("#search").click(function(){
	kk=API+"?";
	var param=[
		
		'k='+document.querySelector('input[name=k]').value,

	];
	search=param.join('&');
    kk=kk+search+'&'+orderby;
	loaddata(kk,1);

	
})

</script>
</body>
</html>